﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MModel;
using BLL;
namespace 八维考试系统MvcApplication1.Controllers
{
    public class homeController : Controller
    {
        sbll bll = new sbll();
        //
        // GET: /home/

        public ActionResult Index()
        {
            return View();
        }

        public int login()
        {
            denglu s=new denglu();
            
            s.dname=Request["lname"];
            s.dpwd=Request["lpwd"];
            Session["name"] = s.dname;
            if (bll.deng(s) > 0)
            {
                return 1;

            }
            else 
            {
                return 0;
            
            }
        }




    }
}
